import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import WindiCSS from "vite-plugin-windicss";
import vueJsx from "@vitejs/plugin-vue-jsx";
import { resolve } from "path";
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue({
      template: {
        compilerOptions: {
          // 将所有包含短横线的标签作为自定义元素处理
          // isCustomElement: (tag) => tag.includes("-"),
        },
      },
    }),
    WindiCSS(),
    vueJsx({}),
  ],
  // vite 配置 路径
  resolve: {
    alias: {
      "@": resolve(__dirname, "src"),
    },
  },
});
